package com.accp.vehiclecare.biz.lscbiz;

import com.accp.vehiclecare.dao.lscdao.Lscsubjoinitem;
import com.accp.vehiclecare.pojo.Subjoinitem;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class LscsubjoinitemBiz {
    @Autowired
    private Lscsubjoinitem dao;

    @Transactional(propagation = Propagation.SUPPORTS)
    public List<Subjoinitem> querbyid(String rid){
        QueryWrapper qw= Wrappers.query();
        qw.eq("repairbillsno",rid);
        return dao.selectList(qw);
    }
}
